cmake_minimum_required(VERSION 3.8.0)
project(myapp)
add_subdirectory(../dlib dlib_build)
include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(${CMAKE_SOURCE_DIR}/include)

find_package(OpenCV REQUIRED)
find_package(nadjieb_mjpeg_streamer REQUIRED)

add_executable(image_to_vector image_to_vector.cpp)
target_link_libraries(image_to_vector dlib::dlib ${OpenCV_LIBS} 
nadjieb_mjpeg_streamer::nadjieb_mjpeg_streamer)

add_executable(face_cmp face_cmp.cpp)
target_link_libraries(face_cmp dlib::dlib ${OpenCV_LIBS} 
nadjieb_mjpeg_streamer::nadjieb_mjpeg_streamer)

add_executable(build_face_lib build_face_lib.cpp)
target_link_libraries(build_face_lib dlib::dlib ${OpenCV_LIBS} 
nadjieb_mjpeg_streamer::nadjieb_mjpeg_streamer)

add_executable(face_recognition face_recognition.cpp)
target_link_libraries(face_recognition dlib::dlib ${OpenCV_LIBS} 
nadjieb_mjpeg_streamer::nadjieb_mjpeg_streamer)
